<include file="Public:header" />
<div id="main" class="main" >
<div class="content">
	<table cellpadding="10px">
		<tr>
			<td valign="top" width="80px" nowrap>
<div class="title">网站栏目</div>
<import file="Js.xtree.xtree" />
<import type="css" file="Js.xtree.xtree" />
<form id="cateform" action="__URL__/cateedit">
	<input type="hidden" name="ajax" value="1" />
<div id="treemenu">
<script language="javascript">
{$genJs}
</script>
</div>
</form>
<div id="treedata">
{$genForm}
</div>
			</td>
			<td valign="top">
                            <div id="result" class="result none"></div>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/editor/kindeditor.js"></script>
<script type="text/javascript">
    KE.show({
        id : 'content_1' //TEXTAREA输入框的ID
   });
   function chooseNode(tid,id) {
	   $('cid-hidden').value = id;
	   $('catename').innerHTML = $('xtree-'+tid+'-anchor').innerHTML;
   }
</script>
<form method='post' id="form1" name="form1" action="__URL__/insert"  enctype="multipart/form-data">
<div class="title">添加数据 [ <input type="submit" value="新 增" class="small submit"> <a href="javascript:history.back()">返回列表</a> ]</div>
<input id="cid-hidden" type="hidden" name="cid" value="0" />
<table cellpadding=3 cellspacing=3 >
<tr>
	<td class="tRight" width="10%">栏目选择</td>
	<td class="tLeft"><div id="catename">未选择栏目</div><div>直接点击左边导航栏中的栏目进行选择</div></td>
</tr>
<tr>
	<td class="tRight" width="10%">标题：</td>
	<td class="tLeft" ><input type="text" class="huge bLeftRequire" name="title"></td>
</tr>
<tr>
    <td class="tRight">SEO标题优化：</td>
    <td class="tLeft">
            标题：<input type="text" name="meta_title" value="{$vo.meta_title}" class="huge"> <br/>
            关键词：<input type="text" name="meta_keywords" value="{$vo.meta_keywords}" class="huge"><br/>
            描述：<input type="text" name="meta_description" value="{$vo.meta_description}" class="huge">
        </td>
</tr>
<tr>
	<td class="tRight tTop">内容：</td>
	<td class="tLeft"><textarea id="content_1" name="content" style="width:700px;height:300px;"></textarea>	</td>
</tr>

<tr>
	<td></td>
	<td class="center"><div style="width:85%;margin:5px">
	<input type="hidden" name="status" value="1">
    <input type="hidden" name="user_id" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>">
	<input type="submit" value="新 增"  class="button small"> <input type="reset" class="button small" onclick="javascript:history.back()" value="返 回" >
	</div></td>
</tr>
</table>
</form>

			</td>
		</tr>
	</table>
</div>
</div>
